body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header-background {
    /* 背景图片 */
    background-image: url('bg.jpg');
    /* 设置背景图片的覆盖方式 */
    background-size: cover;
    /* 设置背景图片的位置 */
    background-position: center center;
    /* 设置背景图片是否重复 */
    background-repeat: no-repeat;
    /* 设置背景图片的固定 */
    background-attachment: fixed;
    /* 设置高度，可以根据需要调整 */
    height: 200px;
    /* 设置内边距，确保内容不会与边缘重叠 */
    padding: 20px;
}

header h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
}

header nav ul {
    padding: 0;
}

header nav ul li {
    display: inline-block;
    font-weight:bold;
    margin-right: 1rem;
}

header nav ul li a {
    color: white;
    font-weight:bold;
    text-decoration: none;
}

main {
    padding: 1rem;
}

section {
    margin-bottom: 2rem;
}

section h2 {
    margin-top: 0;
}

.book-list {
    list-style-type: none;
    padding: 0;
}

.book-list li {
    margin-bottom: 1rem;
}

.book-list li a {
    display: block;
    position: relative;
    text-decoration: none;
    color: #333;
}

.book-list li img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    float: left;
    margin-right: 1rem;
}

.book-list li span {
    display: block;
    font-size: 1.2em;
}
.pagination {
    display: flex;
    justify-content: left;
    margin-top: 20px;
}
.pagination a {
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
}
.pagination a.active {
    background-color: #ccc;
}
footer {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
}
